<?php
	class Shape{
		
		var $shapeName;
		var $javascriptFunction;
		
		public function Shape($array){
			if(isset($array['shapeName'])) $this->shapeName = $array['shapeName'];
			if(isset($array['javascriptFunction'])) $this->javascriptFunction = $array['javascriptFunction'];
		}
		
		public function __toString(){
			return $this->shapeName;
		}
	}
?>